#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "trie.h"

void main()
{
	Trie * T = trie_create(NULL);
	trie_set(T, "Vasya", (Pointer)16);
	trie_set(T, "Kolya", (Pointer)10);
	trie_set(T, "Petya", (Pointer)18);
	trie_set(T, "Vadim", (Pointer)12);
	assert(trie_has(T, "Vasya")==1);
	assert(trie_has(T, "Kolya")==1);
	assert(trie_has(T, "Petya")==1);
	assert(trie_has(T, "Vadim")==1);
	trie_delete(T, "Petya");
	trie_delete(T, "Vasya");
	assert(trie_has(T, "Vadim")==1);
	assert(trie_has(T, "Petya")==0);
	printf("Good.\n");
	system("PAUSE");
}